package sjms.create.singleton;

public class Singleton_7 {
    public static void main(String[] args) {
        Singleton7 singleton7 = Singleton7.INSTANCE;
        singleton7.method();
    }
}

enum Singleton7{
    INSTANCE;

    public void method(){
        System.out.println("可以是各种方法");
    }
}